home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-03-31 | 5.1 KB | 148 lines | [TEXT/MPS ] |
- #
- # MAKEFILE
- #
- # Build script for the 'ODBC Sample Data Translate' shared library (DLL).
- # Execute "Buildprogram All" from your MPW Worksheet. Make sure the SourceFolder,
- # ObjectsFolder and other variables are set to the correct paths first, tho.
- # The variables CDefs, LibDefs and BSLDefs are intended to be set from the worksheet,
- # and can be used to add options to the MPW C, Lib and BuildSharedLibrary tools.
- #
-
- SourceFolder = :Sources:
- ObjectsFolder = :Objects:
- binaries = ::binaries:
-
- ODBCincludes = ::Include:
-
- ODBCLibs = ::LIB:
- InternalLibs = ::InternalLibraries:
- InternalIncludes = ::InternalIncludes:
-
-
- {ObjectsFolder} ƒ {SourceFolder}
-
- DBMStranslateIncludes = -i "{ODBCincludes}" ∂
- -i "{SourceFolder}" ∂
- -i "{InternalIncludes}" ∂
- -i "{SLMInterfaces}CIncludes:"
-
- BSLIncludes = -i "{ODBCincludes}" ∂
- -i "{SourceFolder}" ∂
-
- RezIncludes = -i "{ODBCincludes}" ∂
- -i "{SourceFolder}" ∂
- -i "{SLMInterfaces}Rincludes:"
-
- COptions = {CDefs} -r -b2 -model far ∂
- -d MACODBC=1 -d PPCODBC=0 ∂
- {DBMStranslateIncludes}
-
- PPCOptions = -AppleExt On -char unsigned ∂
- -d MACODBC=1 -d PPCODBC=1 ∂
- {DBMStranslateIncludes} {PPCDefs}
-
- OBJECTS = "{ObjectsFolder}ODBCdataTranslate.c.o" ∂
- "{ObjectsFolder}ConfigTranslator.c.o"
- #"{ObjectsFolder}DialogUtilities.c.o"
-
- XOBJECTS = "{ObjectsFolder}ODBCdataTranslate.c.xo" ∂
- "{ObjectsFolder}ConfigTranslator.c.xo"
- #"{ObjectsFolder}DialogUtilities.c.xo"
-
- RezSources = {SourceFolder}ODBCdataTranslate.r
- RezXSources = {SourceFolder}ODBCdataTranslatePPC.r
-
- all ƒ 68k ppc
- 68k ƒ "{binaries}ODBC Sample Translate"
- ppc ƒ "{binaries}ODBC Sample Translate PPC"
-
- clean ƒ
- delete -i {OBJECTS} ∂
- "{ObjectsFolder}ODBCdataTranslate.o" ∂
- "{ObjectsFolder}ODBCdataTranslate.RSRC" ∂
- "{binaries}ODBC Sample Translate" ∂
- "{ObjectsFolder}ODBC Sample Translate.SYM" ∂
- "{binaries}ODBC Sample Translate PPC" ∂
- "{ObjectsFolder}ODBC Sample Translate PPC.xSYM" ∂
- {ObjectsFolder}SampleTranslate.xcoff ∂
- {XOBJECTS}
-
-
- .c.o ƒ .c
- echo -- C {DepDir}{Default}.c -o {Targ} {Coptions}
- C {DepDir}{Default}.c -o {Targ} {Coptions}
-
- .c.xo ƒ .c
- echo -- ppcc {DepDir}{Default}.c -o {Targ} {PPCOptions}
- ppcc {DepDir}{Default}.c -o {Targ} {PPCOptions}
-
- "{ObjectsFolder}ODBCdataTranslate.RSRC" ƒ {ObjectsFolder}ODBCdataTranslate.o ∂
- {SourceFolder}ODBCdataTranslate.exp
- BuildSharedLibrary {ObjectsFolder}ODBCdataTranslate.o ∂
- -obj {ObjectsFolder}ODBCdataTranslate ∂
- -lib "{ObjectsFolder}ODBCdataTranslate.RSRC" ∂
- -exp {SourceFolder}ODBCdataTranslate.exp ∂
- -far {ObjectsFolder}ODBCdataTranslate.cl.o ∂
- -near {ObjectsFolder}ODBCdataTranslate.cln.o ∂
- {BSLIncludes} ∂
- -symfile "{ObjectsFolder}ODBC Sample Translate.SYM" ∂
- {BSLDefs} ∂
- "{SLMLibraries}LibraryManager.o" ∂
- "{Libraries}Runtime.o" ∂
- "{Libraries}Interface.o"
-
- "{binaries}ODBC Sample Translate" ƒƒ {RezSources} ∂
- "{ObjectsFolder}ODBCdataTranslate.RSRC"
- rez -o {Targ} -t libr -c OMGR ∂
- -a -ov Types.r MPWTypes.r SysTypes.r ∂
- {RezIncludes} ∂
- -s "{ObjectsFolder}" ∂
- {RezSources}
- echo "INCLUDE ∂"{ObjectsFolder}ODBCdataTranslate.RSRC∂";" | rez -a -o {Targ}
-
-
- {ObjectsFolder}ODBCdataTranslate.o ƒ {OBJECTS} "{InternalLibs}"Utilities.o
- Lib {LibDefs} -o {ObjectsFolder}ODBCdataTranslate.o {OBJECTS} ∂
- "{InternalLibs}"Utilities.o
-
-
- #______ ppc build __________________________________________
-
- {ObjectsFolder}SampleTranslate.xcoff ƒ {XOBJECTS} ∂
- "{InternalLibs}"Utilities.xo ∂
- "{ODBCLibs}"ODBCConfigMgr.xcoff ∂
- "{SourceFolder}"ODBCdataTranslate.x
- echo -- PPCLink {targ}...
- PPCLink -sym on -xm Sharedlibrary ∂
- -export "`convertexportlist {SourceFolder}ODBCdataTranslate.x`" ∂
- -main SampleTranslateMain ∂
- {XOBJECTS} ∂
- "{InternalLibs}"Utilities.xo ∂
- "{ODBCLibs}"ODBCConfigMgr.xcoff ∂
- "{PPCLibraries}"InterfaceLib.xcoff ∂
- "{PPCLibraries}"MathLib.xcoff ∂
- "{PPCLibraries}"StdCLib.xcoff ∂
- "{PPCLibraries}"StdCRuntime.o ∂
- "{PPCLibraries}"PPCCRuntime.o ∂
- -o {ObjectsFolder}SampleTranslate.xcoff
- setfile -c R2Db {ObjectsFolder}SampleTranslate.xcoff
-
- "{binaries}ODBC Sample Translate PPC" ƒƒ {ObjectsFolder}SampleTranslate.xcoff
- echo -- MakePEF {targ}...
- MakePEF {Deps} -o {Targ} ∂
- -l SampleTranslate.xcoff=vsi:ODBC$SampleTranslate ∂
- -l ODBCConfigMgr.xcoff=vsi:ODBC$ConfigMgr ∂
- -l InterfaceLib.xcoff=InterfaceLib ∂
- -l MathLib.xcoff=MathLib ∂
- -l StdCLib.xcoff=StdCLib ∂
- -ft 'shlb' -fc 'cfmg' ∂
- -i SampleTranslateInit -t SampleTranslateObit
-
- "{binaries}ODBC Sample Translate PPC" ƒƒ {RezSources} {RezXSources}
- echo -- Rez {targ}...
- rez -a -o {Targ} ∂
- Types.r MPWTypes.r SysTypes.r ∂
- balloontypes.r ∂
- {RezIncludes} ∂
- {RezSources} {RezXSources}
-